package cz.cvut.vrtisja2.muchktom.model;

import java.sql.Date;
import java.util.ArrayList;

import cz.cvut.vrtisja2.muchktom.Category;
import cz.cvut.vrtisja2.muchktom.Unit;

public class Item {
	
	private String name;
	private int qty;
	private Long id;
	private Date creationDate;
	private Date lastPicked;
	
	private ArrayList<Category> categories;
	private Unit unit;
	
	
	public Item(String name, int qty, Date creationDate, Date lastPicked,Category cat, Unit unit) {
		super();
		this.name = name;
		this.qty = qty;
		this.creationDate = creationDate;
		this.lastPicked = lastPicked;
		this.categories= new ArrayList<Category>();
		categories.add(cat);
		
	}


	public Item(String name, int qty) {
		this(name, qty, null, null,null, null);
	}
	
	/**************************getters & setters ************/


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getQty() {
		return qty;
	}


	public void setQty(int qty) {
		this.qty = qty;
	}


	public Long getId() {
		return id;
	}

	public Date getCreationDate() {
		return creationDate;
	}


	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}


	public Date getLastPicked() {
		return lastPicked;
	}


	public void setLastPicked(Date lastPicked) {
		this.lastPicked = lastPicked;
	}


	public ArrayList<Category> getCategories() {
		return categories;
	}


	public void setCategories(ArrayList<Category> categories) {
		this.categories = categories;
	}


	public Unit getUnit() {
		return unit;
	}


	public void setUnit(Unit unit) {
		this.unit = unit;
	}
	
	
	
	
	
	
	
	
	

}
